package rm;

public class Node {

	private int sshPort; // SSH port
	private String hostName; // hostname
	private String user; // A user name with permission to remote access.
	private String passwd; // Password
	private String id; // Identification of the Node on the host, in case of
	private String prog;
	private String idBoss;

	public Node(String id, String hostName, int sshPort) {
		this.id = id;
		this.hostName = hostName;
		this.sshPort = sshPort;
	}

	public Node(String id, String hostName, int sshPort, String user,
			String passwd, String prog, String idBoss) {
		this.id = id;
		this.hostName = hostName;
		this.sshPort = sshPort;
		this.user = user;
		this.passwd = passwd;
		this.prog = prog;
		this.idBoss = idBoss;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getSshPort() {
		return sshPort;
	}

	public void setSshPort(int sshPort) {
		this.sshPort = sshPort;
	}

	public String getHostName() {
		return hostName;
	}

	public void setHostName(String hostName) {
		this.hostName = hostName;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public String getPasswd() {
		return passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	public String getProg() {
		return this.prog;
	}

	public void setProg(String prog) {
		this.prog = prog;
	}

	public String getIdBoss() {
		return this.idBoss;
	}

	public void setChannelDesc(String idBoss) {
		this.idBoss = idBoss;
	}

	public String toString() {
		return hostName + ":" + id;
	}
}